<template>
    <div class="agreementPolicy">
        <div v-html="content" style="padding: 0 .4rem;"></div>
    </div>
</template>
<script>
import apiPolicy from '../../api/loginPolicy'
export default {
  data(){
      return{
          content:''
      }
  },
  mounted () {
      this.getAboutUs(this.$router.history.current.query.dataType)
  },
  methods:{
      // 获取关于我们的详情
      getAboutUs (data) {
            if (data == '用戶協議') {
                // 用户协议
                apiPolicy.agreement().then(data => {
                    this.content = data.body.data.value
            })
          } else {
                // 隐私政策
                apiPolicy.privacy().then(data => {
                    this.content = data.body.data.value
            })
          }
      }
  }
}
</script>
<style scoped>
</style>
